import request from '@/utils/request'

// 查询气瓶检测列表
export function listYinspection(query) {
  return request({
    url: '/system/yinspection/list',
    method: 'get',
    params: query
  })
}

// 查询气瓶检测详细
export function getYinspection(id) {
  return request({
    url: '/system/yinspection/' + id,
    method: 'get'
  })
}

// 新增气瓶检测
export function addYinspection(data) {
  return request({
    url: '/system/yinspection',
    method: 'post',
    data: data
  })
}

// 修改气瓶检测
export function updateYinspection(data) {
  return request({
    url: '/system/yinspection',
    method: 'put',
    data: data
  })
}

// 删除气瓶检测
export function delYinspection(id) {
  return request({
    url: '/system/yinspection/' + id,
    method: 'delete'
  })
}
